/***
 * Start Actual AJAX Implementation
 ***/
function loadXMLDoc(url,id) {
	var element = document.getElementById(id);

	// branch for native XMLHttpRequest object
	if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
		req.onreadystatechange = function() {
			if (req.readyState == 4 && req.status == 200) {
				element.innerHTML = req.responseText;
			}
		}
		req.open("GET", url, true);
		req.send(null);

	// branch for IE/Windows ActiveX version
	} else if (window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");

		if (req) {
			req.onreadystatechange = function() {
				if (req.readyState == 4 && req.status == 200) {
					element.innerHTML = req.responseText;
				}
			}
			req.open("GET", url, true);
			req.send();
			
		}
	}
}

function processReqChange() {
	// only if req shows "loaded"
	
	if (req.readyState == 4) {
		// only if "OK"
		if (req.status == 200) {
			return true;
		} else {
			return false;
			//alert("There was a problem retrieving the XML data:\n" + req.statusText);
		}
	}
}
/***
 * END AJAX Implementation
 ******/

/* ------------------------------------- BAH ---------------------------------------- */